<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <title>Dashboard for /home/dsilva/sfprojects/jobeet/src/Ibw/JobeetBundle/Entity</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link href="../css/bootstrap.min.css" rel="stylesheet">
  <link href="../css/nv.d3.css" rel="stylesheet">
  <link href="../css/style.css" rel="stylesheet">
  <!--[if lt IE 9]>
  <script src="../js/html5shiv.js"></script>
  <script src="../js/respond.min.js"></script>
  <![endif]-->
 </head>
 <body>
  <header>
   <div class="container">
    <div class="row">
     <div class="col-md-12">
      <ol class="breadcrumb">
        <li><a href="../index.html">/home/dsilva/sfprojects/jobeet/src/Ibw/JobeetBundle</a></li>
        <li><a href="Entity.html">Entity</a></li>
        <li class="active">(Dashboard)</li>

      </ol>
     </div>
    </div>
   </div>
  </header>
  <div class="container">
   <div class="row">
    <div class="col-md-12">
     <h2>Classes</h2>
    </div>
   </div>
   <div class="row">
    <div class="col-md-6">
     <h3>Coverage Distribution</h3>
     <div id="classCoverageDistribution" style="height: 300px;">
       <svg></svg>
     </div>
    </div>
    <div class="col-md-6">
     <h3>Complexity</h3>
     <div id="classComplexity" style="height: 300px;">
       <svg></svg>
     </div>
    </div>
   </div>
   <div class="row">
    <div class="col-md-6">
     <h3>Insufficient Coverage</h3>
     <div class="scrollbox">
      <table class="table">
       <thead>
        <tr>
         <th><div align="left">Class</div></th>
         <th><div align="right">Coverage</div></th>
        </tr>
       </thead>
       <tbody>
       <tr><td><a href="Entity/Affiliate.php.html#13">Affiliate</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/CategoryRepository.php.html#13">CategoryRepository</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#16">Category</a></td><td><div align="right">31%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#16">Job</a></td><td><div align="right">55%</div></td></tr>

       </tbody>
      </table>
     </div>
    </div>
    <div class="col-md-6">
     <h3>Project Risks</h3>
     <div class="scrollbox">
      <table class="table">
       <thead>
        <tr>
         <th><div align="left">Class</div></th>
         <th><div align="right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></div></th>
        </tr>
       </thead>
       <tbody>
       <tr><td><a href="Entity/Affiliate.php.html#13">Affiliate</a></td><td><div align="right">272</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#16">Job</a></td><td><div align="right">161</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#16">Category</a></td><td><div align="right">151</div></td></tr>

       </tbody>
      </table>
     </div>
    </div>
   </div>
   <div class="row">
    <div class="col-md-12">
     <h2>Methods</h2>
    </div>
   </div>
   <div class="row">
    <div class="col-md-6">
     <h3>Coverage Distribution</h3>
     <div id="methodCoverageDistribution" style="height: 300px;">
       <svg></svg>
     </div>
    </div>
    <div class="col-md-6">
     <h3>Complexity</h3>
     <div id="methodComplexity" style="height: 300px;">
       <svg></svg>
     </div>
    </div>
   </div>
   <div class="row">
    <div class="col-md-6">
     <h3>Insufficient Coverage</h3>
     <div class="scrollbox">
      <table class="table">
       <thead>
        <tr>
         <th><div align="left">Method</div></th>
         <th><div align="right">Coverage</div></th>
        </tr>
       </thead>
       <tbody>
       <tr><td><a href="Entity/Job.php.html#266">Job::getPosition</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#243">Job::getUrl</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#289">Job::getLocation</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#312">Job::getDescription</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#335">Job::getHowToApply</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#220">Job::getLogo</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#197">Job::getCompany</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#195">Category::setSlug</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#207">Category::getSlug</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/CategoryRepository.php.html#15">CategoryRepository::getWithJobs</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#174">Job::getType</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#358">Job::getToken</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#381">Job::getIsPublic</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#504">Job::getCategory</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#494">Job::getUpdatedAt</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#509">Job::getCompanySlug</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#514">Job::getPositionSlug</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#519">Job::getLocationSlug</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#484">Job::setUpdatedAt</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#475">Job::getCreatedAt</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#404">Job::getIsActivated</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#427">Job::getEmail</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#438">Job::setExpiresAt</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#450">Job::getExpiresAt</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#74">Affiliate::getId</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#184">Category::getMoreJobs</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#166">Affiliate::getIsActive</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#154">Affiliate::setIsActive</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#177">Affiliate::setCreatedAt</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#189">Affiliate::getCreatedAt</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#200">Affiliate::setCategory</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#143">Affiliate::getToken</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#131">Affiliate::setToken</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#85">Affiliate::setUrl</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#97">Affiliate::getUrl</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#108">Affiliate::setEmail</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#120">Affiliate::getEmail</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#179">Category::setMoreJobs</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#212">Affiliate::getCategory</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#141">Category::getJobs</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#131">Category::removeJob</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#152">Category::addAffiliate</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#164">Category::removeAffiliate</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#174">Category::getAffiliates</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#119">Category::addJob</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#100">Category::__toString</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#235">Affiliate::getCategories</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#90">Category::setActiveJobs</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#95">Category::getActiveJobs</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#223">Affiliate::setCategories</a></td><td><div align="right">0%</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#458">Job::setCreatedAt</a></td><td><div align="right">57%</div></td></tr>

       </tbody>
      </table>
     </div>
    </div>
    <div class="col-md-6">
     <h3>Project Risks</h3>
     <div class="scrollbox">
      <table class="table">
       <thead>
        <tr>
         <th><div align="left">Method</div></th>
         <th><div align="right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></div></th>
        </tr>
       </thead>
       <tbody>
       <tr><td><a href="Entity/Category.php.html#179">Category::setMoreJobs</a></td><td><div align="right">6</div></td></tr>
       <tr><td><a href="Entity/Category.php.html#100">Category::__toString</a></td><td><div align="right">6</div></td></tr>
       <tr><td><a href="Entity/Affiliate.php.html#177">Affiliate::setCreatedAt</a></td><td><div align="right">6</div></td></tr>
       <tr><td><a href="Entity/Job.php.html#458">Job::setCreatedAt</a></td><td><div align="right">2</div></td></tr>

       </tbody>
      </table>
     </div>
    </div>
   </div>
   <footer>
    <hr/>
    <p>
     <small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 2.0.5</a> using <a href="http://php.net/" target="_top">PHP 5.5.9-1ubuntu4.5</a> and <a href="http://phpunit.de/">PHPUnit 4.0.17</a> at Mon Nov 3 16:12:10 WET 2014.</small>
    </p>
   </footer>
  </div>
  <script src="../js/jquery.js" type="text/javascript"></script>
  <script src="../js/bootstrap.min.js" type="text/javascript"></script>
  <script src="../js/holder.js" type="text/javascript"></script>
  <script src="../js/d3.min.js" type="text/javascript"></script>
  <script src="../js/nv.d3.min.js" type="text/javascript"></script>
  <script type="text/javascript">
$(document).ready(function() {
  nv.addGraph(function() {
    var chart = nv.models.multiBarChart();
    chart.tooltips(false)
      .showControls(false)
      .showLegend(false)
      .reduceXTicks(false)
      .staggerLabels(true)
      .yAxis.tickFormat(d3.format('d'));

    d3.select('#classCoverageDistribution svg')
      .datum(getCoverageDistributionData([2,0,0,0,1,0,1,0,0,0,0,1], "Class Coverage"))
      .transition().duration(500).call(chart);

    nv.utils.windowResize(chart.update);

    return chart;
  });

  nv.addGraph(function() {
    var chart = nv.models.multiBarChart();
    chart.tooltips(false)
      .showControls(false)
      .showLegend(false)
      .reduceXTicks(false)
      .staggerLabels(true)
      .yAxis.tickFormat(d3.format('d'));

    d3.select('#methodCoverageDistribution svg')
      .datum(getCoverageDistributionData([50,0,0,0,0,0,1,0,0,0,0,23], "Method Coverage"))
      .transition().duration(500).call(chart);

    nv.utils.windowResize(chart.update);

    return chart;
  });

  function getCoverageDistributionData(data, label) {
    var labels = [
      '0%',
      '0-10%',
      '10-20%',
      '20-30%',
      '30-40%',
      '40-50%',
      '50-60%',
      '60-70%',
      '70-80%',
      '80-90%',
      '90-100%',
      '100%'
    ];
    var values = [];
    $.each(labels, function(key) {
      values.push({x: labels[key], y: data[key]});
    });

    return [
      {
        key: label,
        values: values,
        color: "#4572A7"
      }
    ];
  }
  nv.addGraph(function() {
    var chart = nv.models.scatterChart()
      .showDistX(true)
      .showDistY(true)
      .showLegend(false)
      .forceX([0, 100]);
    chart.scatter.onlyCircles(false);
    chart.tooltipContent(function(key, y, e, graph) {
      return '<p>' + graph.point.class + '</p>';
    });

    chart.xAxis.axisLabel('Code Coverage (in percent)');
    chart.yAxis.axisLabel('Cyclomatic Complexity');

    d3.select('#classComplexity svg')
      .datum(getComplexityData([[0,16,"<a href=\"Entity\/Affiliate.php.html#13\">Affiliate<\/a>"],[31.034482758621,20,"<a href=\"Entity\/Category.php.html#16\">Category<\/a>"],[0,1,"<a href=\"Entity\/CategoryRepository.php.html#13\">CategoryRepository<\/a>"],[55.932203389831,38,"<a href=\"Entity\/Job.php.html#16\">Job<\/a>"],[100,8,"<a href=\"Entity\/JobRepository.php.html#13\">JobRepository<\/a>"]], 'Class Complexity'))
      .transition()
      .duration(500)
      .call(chart);

    nv.utils.windowResize(chart.update);

    return chart;
  });

  nv.addGraph(function() {
    var chart = nv.models.scatterChart()
      .showDistX(true)
      .showDistY(true)
      .showLegend(false)
      .forceX([0, 100]);
    chart.scatter.onlyCircles(false);
    chart.tooltipContent(function(key, y, e, graph) {
      return '<p>' + graph.point.class + '</p>';
    });

    chart.xAxis.axisLabel('Code Coverage (in percent)');
    chart.yAxis.axisLabel('Method Complexity');

    d3.select('#methodComplexity svg')
      .datum(getComplexityData([[0,1,"<a href=\"Entity\/Affiliate.php.html#74\">Affiliate::getId<\/a>"],[0,1,"<a href=\"Entity\/Affiliate.php.html#85\">Affiliate::setUrl<\/a>"],[0,1,"<a href=\"Entity\/Affiliate.php.html#97\">Affiliate::getUrl<\/a>"],[0,1,"<a href=\"Entity\/Affiliate.php.html#108\">Affiliate::setEmail<\/a>"],[0,1,"<a href=\"Entity\/Affiliate.php.html#120\">Affiliate::getEmail<\/a>"],[0,1,"<a href=\"Entity\/Affiliate.php.html#131\">Affiliate::setToken<\/a>"],[0,1,"<a href=\"Entity\/Affiliate.php.html#143\">Affiliate::getToken<\/a>"],[0,1,"<a href=\"Entity\/Affiliate.php.html#154\">Affiliate::setIsActive<\/a>"],[0,1,"<a href=\"Entity\/Affiliate.php.html#166\">Affiliate::getIsActive<\/a>"],[0,2,"<a href=\"Entity\/Affiliate.php.html#177\">Affiliate::setCreatedAt<\/a>"],[0,1,"<a href=\"Entity\/Affiliate.php.html#189\">Affiliate::getCreatedAt<\/a>"],[0,1,"<a href=\"Entity\/Affiliate.php.html#200\">Affiliate::setCategory<\/a>"],[0,1,"<a href=\"Entity\/Affiliate.php.html#212\">Affiliate::getCategory<\/a>"],[0,1,"<a href=\"Entity\/Affiliate.php.html#223\">Affiliate::setCategories<\/a>"],[0,1,"<a href=\"Entity\/Affiliate.php.html#235\">Affiliate::getCategories<\/a>"],[100,1,"<a href=\"Entity\/Category.php.html#62\">Category::getId<\/a>"],[100,1,"<a href=\"Entity\/Category.php.html#73\">Category::setName<\/a>"],[100,1,"<a href=\"Entity\/Category.php.html#85\">Category::getName<\/a>"],[0,1,"<a href=\"Entity\/Category.php.html#90\">Category::setActiveJobs<\/a>"],[0,1,"<a href=\"Entity\/Category.php.html#95\">Category::getActiveJobs<\/a>"],[0,2,"<a href=\"Entity\/Category.php.html#100\">Category::__toString<\/a>"],[100,1,"<a href=\"Entity\/Category.php.html#107\">Category::__construct<\/a>"],[0,1,"<a href=\"Entity\/Category.php.html#119\">Category::addJob<\/a>"],[0,1,"<a href=\"Entity\/Category.php.html#131\">Category::removeJob<\/a>"],[0,1,"<a href=\"Entity\/Category.php.html#141\">Category::getJobs<\/a>"],[0,1,"<a href=\"Entity\/Category.php.html#152\">Category::addAffiliate<\/a>"],[0,1,"<a href=\"Entity\/Category.php.html#164\">Category::removeAffiliate<\/a>"],[0,1,"<a href=\"Entity\/Category.php.html#174\">Category::getAffiliates<\/a>"],[0,2,"<a href=\"Entity\/Category.php.html#179\">Category::setMoreJobs<\/a>"],[0,1,"<a href=\"Entity\/Category.php.html#184\">Category::getMoreJobs<\/a>"],[0,1,"<a href=\"Entity\/Category.php.html#195\">Category::setSlug<\/a>"],[0,1,"<a href=\"Entity\/Category.php.html#207\">Category::getSlug<\/a>"],[100,1,"<a href=\"Entity\/Category.php.html#215\">Category::setSlugValue<\/a>"],[0,1,"<a href=\"Entity\/CategoryRepository.php.html#15\">CategoryRepository::getWithJobs<\/a>"],[100,1,"<a href=\"Entity\/Job.php.html#139\">Job::__construct<\/a>"],[100,1,"<a href=\"Entity\/Job.php.html#151\">Job::getId<\/a>"],[100,1,"<a href=\"Entity\/Job.php.html#162\">Job::setType<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#174\">Job::getType<\/a>"],[100,1,"<a href=\"Entity\/Job.php.html#185\">Job::setCompany<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#197\">Job::getCompany<\/a>"],[100,1,"<a href=\"Entity\/Job.php.html#208\">Job::setLogo<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#220\">Job::getLogo<\/a>"],[100,1,"<a href=\"Entity\/Job.php.html#231\">Job::setUrl<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#243\">Job::getUrl<\/a>"],[100,1,"<a href=\"Entity\/Job.php.html#254\">Job::setPosition<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#266\">Job::getPosition<\/a>"],[100,1,"<a href=\"Entity\/Job.php.html#277\">Job::setLocation<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#289\">Job::getLocation<\/a>"],[100,1,"<a href=\"Entity\/Job.php.html#300\">Job::setDescription<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#312\">Job::getDescription<\/a>"],[100,1,"<a href=\"Entity\/Job.php.html#323\">Job::setHowToApply<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#335\">Job::getHowToApply<\/a>"],[100,1,"<a href=\"Entity\/Job.php.html#346\">Job::setToken<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#358\">Job::getToken<\/a>"],[100,1,"<a href=\"Entity\/Job.php.html#369\">Job::setIsPublic<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#381\">Job::getIsPublic<\/a>"],[100,1,"<a href=\"Entity\/Job.php.html#392\">Job::setIsActivated<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#404\">Job::getIsActivated<\/a>"],[100,1,"<a href=\"Entity\/Job.php.html#415\">Job::setEmail<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#427\">Job::getEmail<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#438\">Job::setExpiresAt<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#450\">Job::getExpiresAt<\/a>"],[57.142857142857,2,"<a href=\"Entity\/Job.php.html#458\">Job::setCreatedAt<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#475\">Job::getCreatedAt<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#484\">Job::setUpdatedAt<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#494\">Job::getUpdatedAt<\/a>"],[100,1,"<a href=\"Entity\/Job.php.html#499\">Job::setCategory<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#504\">Job::getCategory<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#509\">Job::getCompanySlug<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#514\">Job::getPositionSlug<\/a>"],[0,1,"<a href=\"Entity\/Job.php.html#519\">Job::getLocationSlug<\/a>"],[100,4,"<a href=\"Entity\/JobRepository.php.html#15\">JobRepository::getActiveJobs<\/a>"],[100,2,"<a href=\"Entity\/JobRepository.php.html#43\">JobRepository::getActiveJob<\/a>"],[100,2,"<a href=\"Entity\/JobRepository.php.html#62\">JobRepository::countActiveJobs<\/a>"]], 'Method Complexity'))
      .transition()
      .duration(500)
      .call(chart);

    nv.utils.windowResize(chart.update);

    return chart;
  });

  function getComplexityData(data, label) {
    var values = [];
    $.each(data, function(key) {
      var value = Math.round(data[key][0]*100) / 100;
      values.push({
        x: value,
        y: data[key][1],
        class: data[key][2],
        size: 0.05,
        shape: 'diamond'
      });
    });

    return [
      {
        key: label,
        values: values,
        color: "#4572A7"
      }
    ];
  }
});
  </script>
 </body>
</html>
